跳到主要内容

Introduction

Enable

The script extension function is disabled by default.

You can enable corresponding options under expansion of config.yml. And reload the server to apply changes.

Storage Path

All groovy scripts are stored in the folder plugins\EnderDragon\expansion\groovy.

All groovy files in this folder (including sub folders) will be read by plugin.

信息

UTF-8 is recommended for file encoding to avoid garbled code

Function

You can almost do anything with Groovy, and even write an EnderDragon plugin using it.

Most code written in Java can run normally in Groovy even without modification.